package com.blabla.service;

import com.blabla.dao.LogDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class LogService {
    @Resource
    private LogDao logDao;
    public String getFirstLog(Integer userid){

        return logDao.getLog(userid)+ " you and me";
    }

    public boolean insertLog(Integer userid, String sign, String ext) {
        Integer integer = logDao.insertLog(userid, sign, ext);
        if(integer != null){
            return true;
        }
        return false;
    }
}
